package com.jd.goods.service;

import org.apache.log4j.Logger;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class GoodsServiceMain {
	private static final Logger logger = Logger.getLogger(GoodsServiceMain.class);
	
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = 
				new ClassPathXmlApplicationContext("classpath:spring/spring-context.xml");
		context.start();
		logger.info("goods service is running...................");
		synchronized (GoodsServiceMain.class) {
			while(true){
				try {
					GoodsServiceMain.class.wait();
				} catch (InterruptedException e) {
					e.printStackTrace();
					logger.info("goods service is stopping...................");
				}
			}
		}
	}

}
